import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import Table from './views/nav1/Table.vue'
import Form from './views/nav1/Form.vue'
import user from './views/nav1/user.vue'
import Page4 from './views/nav2/Page4.vue'
import Page5 from './views/nav2/Page5.vue'
import Page6 from './views/nav3/Page6.vue'
import echarts from './views/charts/echarts.vue'
import Department from './views/org/Department.vue'
import Employee from './views/org/Employee.vue'
import Dictionary from './views/dictionary/Dictionary.vue'
import ShopRegister from "./views/ShopRegister";
import Shop from "./views/org/Shop";
import Menu from "./views/org/Menu";
import Role from "./views/org/Role";
import Address from "./views/org/Address";
import Pet from "./views/pet/Pet";
import product from "./views/product/product";
import product2 from "./views/product/product2";
import product3 from "./views/product/product3";

let routes = [
    {
        path: '*',
        hidden: true,
        name: '',
        redirect: { path: '/404' }
    },
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/register',
        component: ShopRegister,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: 'Charts',
        iconCls: 'fa fa-bar-chart',
        children: [
            { path: '/echarts', component: echarts, name: 'echarts' },
            { path: '/product', component: product, name: 'product' },
            { path: '/product2', component: product2, name: 'product2' },
            { path: '/product3', component: product3, name: 'product3' }
        ]
    },


];

export default routes;